import Layout from '@/layout/Index.vue'
import UserLayout from '@/views/user/layout/Index.vue'

export default {
    component: Layout,
    name: 'user',
    path: '/user',
    children: [
        {
            path: '/user',
            name: 'user-child',
            component: UserLayout,
            redirect: '/user/backpack',
            children: [
                {
                    path: '/user/backpack',
                    name: 'backpack',
                    component: () => import('@/views/user/backpack/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/exchange',
                    name: 'exchange',
                    component: () => import('@/views/user/exchange/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/recharge-record',
                    name: 'recharge-record',
                    component: () => import('@/views/user/recharge-record/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/nextLevel',
                    name: 'nextLevel',
                    component: () => import('@/views/user/nextLevel/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/myLevel',
                    name: 'myLevel',
                    component: () => import('@/views/user/myLevel/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/changeCharge-record',
                    name: 'changeCharge-record',
                    component: () => import('@/views/user/changeCharge-record/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/top-record',
                    name: 'top-record',
                    component: () => import('@/views/user/top-record/Index.vue'),
                    meta: {
                        module: 'top'
                    }
                },
                {
                    path: '/user/sell-record',
                    name: 'sell-record',
                    component: () => import('@/views/user/sell-record/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/open-record',
                    name: 'open-record',
                    component: () => import('@/views/user/open-record/Index.vue'),
                    meta: {
                        module: 'user'
                    }
                },
                {
                    path: '/user/retrieve-record',
                    name: 'retrieve-record',
                    component: () => import("@/views/user/retrieve-record/Index.vue"),
                    meta: {
                        module: "user"
                    }
                },
                {
                    path: '/user/msg-record',
                    name: 'msg-record',
                    component: () => import("@/views/user/msg-record/Index.vue"),
                    meta: {
                        module: "user"
                    }
                }
            ]
        }
    ]
}
